//
//  ZCRankingCell.m
//  zctx
//
//  Created by apple on 16/2/24.
//  Copyright © 2016年 sanliang. All rights reserved.
//

#import "ZCRankingCell.h"
#import "ZCRankingListModelContent.h"
@implementation ZCRankingCell

- (void)awakeFromNib {
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.backgroundColor = RGB(241, 251, 253);
    self.numLable.textColor = [UIColor colorWithHexString:@"#FF6C61"];
    self.nameLable.textColor = [UIColor colorWithHexString:@"#2DBEFF"];
//    self.haoLable.backgroundColor = [UIColor colorWithHexString:@"#2DBEFF"];
    self.contentLable.textColor = [UIColor colorWithHexString:@"#404040"];
    self.contView.layer.borderWidth = 1;
    self.contView.layer.borderColor = [UIColor colorWithHexString:@"#EEEEEF"].CGColor;
    self.haoView.backgroundColor = [UIColor colorWithHexString:@"#2DBEFF" andAlpha:0.5];
}

-(void)setListModel:(ZCRankingListModelContent *)ListModel{
    
    NSLog(@"list = %@,%@",ListModel.voteNum,ListModel.rank);
    _ListModel = ListModel;
    self.numLable.text = [NSString stringWithFormat:@"%@票/第%@名",ListModel.voteNum,ListModel.rank];
    self.nameLable.text = ListModel.vote_name;
    self.contentLable.text =ListModel.slogan;
    self.haoLable.text = [NSString stringWithFormat:@"%@号   ",ListModel.contentIdentifier];
    
    NSURL *url =[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",[NetworkManager strURLBasic],ListModel.thumb]];
    [self.ImgView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"placehold_involved"]];
}

@end
